<?php 
// Lay cac thong so cau hinh chung
include "../../app_global.php";
// Ham thuc hien lay ten file va hien thi noi dung
include "../../isa-lib/isa-function/isa_public_function.php";
//Ham thuc hien xay dung cay
include "../../isa-lib/isa-function/class_xslt.php";
require_once("../../isa-lib/nusoap/nusoap.php");
include "../../isa-lib/isa-function/prax.php";
// Lay cac hang so chung 
include "../../const.php";
// Lay cac hang so cua chuc nang nay
include "const.php";
//Ket noi co so du lieu
include "../../connect.php";
include "page.php";
// Mo ket noi bang ADODB
include "../../connect_ado.php";
// Lay cac thong so cau hinh rieng cho chuc nang nay
include "app_local.php";
include "../../onegate_function.php";
?>
<script src="../../isa-lib/isa-js/isa_util.js"></script>
<script src="../isa_onegate.js"></script>
<!--script src="../vtyping.js"></script--><?php
//Hien thi che do modal_dialog
if (!isset($_REQUEST['modal_dialog_mode'])) {
	include "../dsp_header.php";
}else{
	include "../dsp_modal_dialog_header.php";
}
switch($fuseaction) {
	 case "DISPLAY_ALL_AF_BY_ALL_AGENCY";	
	 	include "qry_all_af_by_all_agency.php";
		include "dsp_all_af_by_all_agency.php"; 
 		break;		
	case "DISPLAY_ALL_CATE_BY_AGENCY";	
	 	include "qry_all_cate_by_agency.php";
		include "dsp_all_cate_by_agency.php"; 
 		break;
	case "DISPLAY_ALL_AF_BY_CATE";	
	 	include "qry_all_af_by_category.php";
		include "dsp_all_af_by_category.php"; 
 		break;
	//Cate	
	case "DISPLAY_ALL_AF_BY_ALL_CATE";	
	 	include "qry_all_af_by_all_cate.php";
		include "dsp_all_af_by_all_cate.php"; 
 		break;
	case "DISPLAY_ALL_AGENCY_BY_CATE";	
		include "qry_all_cate.php";
	 	include "qry_all_agency_by_cate.php";
		include "dsp_all_agency_by_cate.php"; 
 		break;
	case "DISPLAY_ALL_AF_BY_AGENCY";	
	 	include "qry_all_af_by_agency.php";
		include "dsp_all_af_by_agency.php"; 
 		break;	
	//TTHC thuong gap
	case "DISPLAY_ALL_AF_FREQUENT";	
	 	include "qry_all_af_frequent.php";
		include "dsp_all_af_frequent.php"; 
 		break;
	//TTHC truoc do
	case "DISPLAY_ALL_AF_BY_HISTORY";	
	 	include "qry_all_af_by_history.php";
		include "dsp_all_af_by_history.php"; 
 		break;
	//DK tuy chon
	case "DISPLAY_SEARCH_CONDITIONS";	
		include "qry_all_agency.php";
		include "qry_all_cate.php";
		include "dsp_all_conditions.php"; 
		break;
	case "DISPLAY_AF_BY_SEARCH_CONDITIONS";	
		include "qry_all_af.php";
		include "dsp_all_af.php"; 
		break;
	case "DISPLAY_SINGLE_AF";	
	 	include "qry_single_af.php";
		include "dsp_single_af.php"; 
 		break;
	case "DISPLAY_ALL_AF_BY_FTS";	
		include "qry_all_af_by_fts.php";
		include "dsp_all_af_by_fts.php";
		break;
	default:
	 	include "qry_all_af_by_all_agency.php";
		include "dsp_all_af_by_all_agency.php"; 
	    break; 
}
include "../../disconnect.php";
if (!isset($_REQUEST['modal_dialog_mode'])) {
	include "../dsp_footer.php";
}else{
	include "../dsp_modal_dialog_footer.php";
}
?>